<!DOCTYPE html>
<html>
    <head>
        <meta name="charset" content="utf-8" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
                
        <title><?=self::getAppName()?> - <?=self::getTitle()?></title>
                        
        <style type="text/css">
            html, body {
                background-color: #161616;
                color: #FFFFFF;
                margin: 0;
            }

            #container {
                background-color: #F2EFEB;
                position: relative;
                margin: 60px;
                border: 0px solid #ccc;
                color: #333;
                font-family: Arial, sans-serif, helvetica;
                font-size: 14px;
                padding: 20px;
                
                -moz-border-radius: 8px;
                -webkit-border-radius: 8px;
                border-radius: 8px;

                -moz-box-shadow:    0 0 12px 0 #fff;
                -webkit-box-shadow: 0 0 12px 0 #fff;
                box-shadow:         0 0 12px 0 #fff;
            }

            h1 { 
                margin: 0; 
                font-size: 26px; 
                border-bottom: 1px solid #888;
            }
            
            h2 { 
                font-size: 21px;
                margin: 0;
            }
            
            a { 
                color: #263134;
                text-decoration: none;
            }
            
            label { 
                width: 90px;
                float: left;
                display: block;
            }
            
            .code { 
                background-color: #242729;
                padding: 8px;
                margin: 0;
                -moz-border-radius: 8px;
                -webkit-border-radius: 8px;
                border-radius: 8px;
            }
            
            .code table {
                color: #F2EFEB;
                font-family: DROID SANS MONO, MONOSPACED, Consolas, Arial;
                font-size: 13px;
            }
            
            .code p { margin: 0; }
            
            #footer { position: fixed; bottom: 0; background-color: #0c0c0c; width: 100%; padding: 12px;}
            #footer a { color: #ccc; font-family: Arial; font-size: 13px;}
            #footer a:hover { text-decoration: underline;}
        </style>
    </head>
    <body>
        <div id="container">
            <h1><?=self::getTitle()?></h1>
            <p>
                <?=self::getMessage()?> 
            </p>
            <?php if ( ENVIRONMENT == 'development' ): ?>
            <div class="code">
                <p>
                    <table cellpadding="6" cellspacing="0">
                        <tr>
                            <td width="84">File</td>
                            <td><?=self::getFile()?></td>
                        </tr>
                        <tr>
                            <td>Line</td>
                            <td><?=self::getLine()?></td>
                        </tr>
                        <tr id="stacktrace" valign="top">
                            <td>Stacktrace</td>
                            <td><?=self::getTrace()?></td>
                        </tr>
                    </table>
                </p>
            </div>
            <?php endif; ?>
        </div>
        <div id="footer">
            &laquo; <a href="<?=self::baseUrl()?>">Back</a>
        </div>
    </body>
</html>
